﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SqlQuery.aspx.cs" Inherits="WMS6.Web.Administration.SqlQuery" %>

<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SqlQuery</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
   <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <div>
        <div id="div_query">
            <div id="div_button" style="display: block;">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" Enabled="True" CssClass="button" OnClick="btnSearch_Click" />
                        </td>
                        <td>
                            <asp:Button ID="btnGoBack" runat="server" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="True" CssClass="button" PostBackUrl="GlobalSetting.aspx" />
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="lblMsg" runat="server" style="color:Red;"></asp:Label></td>
                    </tr>
                </table>
            </div>
            <div id="con_one_1" style="display: block;">
                <table width="580px" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 180px;height: auto">
                            <asp:TextBox ID="txtSql" runat="server" CssClass="largetextarea" Height="150" Width="700" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="div_List">
            <asp:GridView ID="gvResult" runat="server" AutoGenerateColumns="True" AllowSorting="false" AllowPaging="false"  onrowdatabound="gvResult_RowDataBound">
                <HeaderStyle BackColor="#F5F5F5" />
                <Columns>
                    <asp:BoundField HeaderText="No"><ItemStyle BackColor="#F5F5F5" /></asp:BoundField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
